//
//  SWClassificationCollectionViewCell.m
//  sc-cyan-ios
//
//  Created by lvjian01 on 2017/12/19.
//  Copyright © 2017年 greenbuilding. All rights reserved.
//

#import "SWClassificationCollectionViewCell.h"

@interface SWClassificationCollectionViewCell ()

@property (nonatomic, strong) UILabel *titleLabel;

@end

@implementation SWClassificationCollectionViewCell

- (instancetype)initWithFrame:(CGRect)frame{
    if (self = [super initWithFrame:frame]) {
        
        self.contentView.backgroundColor = [UIColor clearColor];
        [self initView];
        
    }
    return self;
}

- (void)initView{
    _titleLabel = [[UILabel alloc] initWithFrame:self.bounds];
    _titleLabel.font = SYSTEMFONT(12.0);
    _titleLabel.textColor = [UIColor gb_textColor_999999];
    _titleLabel.textAlignment = NSTextAlignmentCenter;
    _titleLabel.cornerRadius = 2;//self.height/2;
    _titleLabel.borderWidth = 1;
    _titleLabel.borderColor = [UIColor gb_line_d4d4d4];
    _titleLabel.backgroundColor = UIColorFromRGB(0xFAFAFA);
    
    [self.contentView addSubview:_titleLabel];
}

- (void)setTitle:(NSString *)title{
    _title = title;
    self.titleLabel.text = title;
}


@end
